#ifndef STARTDIALOG_H
#define STARTDIALOG_H

#include "ui_startdialog.h"
#include "plugins/gsplugin.h"

#include <QDialog>
#include <QTimer>
#include <QString>
#include <QList>


class StartDialog : public QDialog
{
    Q_OBJECT    
public:
    StartDialog(QWidget *parent = 0);
    ~StartDialog();
    void loadPlugins();
    QList<GSPlugIn*> getPlugIns();
    bool checkPlugIns(GSPlugIn* plugin);
    
public slots:
    void updateProgress();

private:
    Ui::StartDialogUi ui;

    int loadingProgress;   //the loading progress of plugins
    QTimer timer;          //update progress bar

    QList<GSPlugIn*> plugInSet; //store plugin applications
};


#endif // STARTWINDOW_H
